package com.ruoyi.drug.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 药品出入记录对象 drug_inout_record
 * 
 * @author ruoyi
 * @date 2025-03-25
 */
public class DrugInoutRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 药品出入记录id */
    private Long id;

    /** 关联药品id */
    @Excel(name = "关联药品id")
    private Long drugId;

    /** 关联药品名 */
    @Excel(name = "关联药品名")
    private String drugName;

    /** 数量 */
    @Excel(name = "数量")
    private Long num;

    /** 备注 */
    @Excel(name = "备注")
    private String etc;

    /** 0-入库 1-出库 */
    @Excel(name = "0-入库 1-出库")
    private Long type;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDrugId(Long drugId) 
    {
        this.drugId = drugId;
    }

    public Long getDrugId() 
    {
        return drugId;
    }
    public void setNum(Long num) 
    {
        this.num = num;
    }

    public Long getNum() 
    {
        return num;
    }
    public void setEtc(String etc) 
    {
        this.etc = etc;
    }

    public String getEtc() 
    {
        return etc;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }

    public String getDrugName() {
        return drugName;
    }

    public void setDrugName(String drugName) {
        this.drugName = drugName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("drugId", getDrugId())
            .append("num", getNum())
            .append("etc", getEtc())
            .append("createTime", getCreateTime())
            .append("type", getType())
            .toString();
    }
}
